package com.xxx.sso.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author caiwl
 * @date 2020/5/14 9:50
 */
@Service
@Async
public class AsyncService {
    public void m1() {
        for (int m = 0; m < 100; m++) {
            System.out.println(Thread.currentThread().getName() + " ++++++++++ m = " + m);
        }
    }
    public void m2() {
        for (int n = 0; n < 100; n++) {
            System.out.println(Thread.currentThread().getName() + " ++++++++++ n = " + n);
        }
    }
}
